package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.CountUserIntegralDetailBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/27.
 */
@RestController
@Api(value="用户积分详情统计",tags={"用户积分详情统计"})
public class CountUserIntegralDetailController {

    @Autowired
    private CountUserIntegralDetailBiz countUserIntegralDetailBiz;
    @ApiOperation(value="用户积分详情统计")
    @PostMapping(value = "/api/user/query/integral/{pageNo}/{pageSize}")
    public Result countUserIntegralDetail(@PathVariable(value = "pageNo")int pageNo, @PathVariable(value = "pageSize")int pageSize){
        return HandleResultUtil.querySuccessResult(countUserIntegralDetailBiz.countUserIntegralDetail(pageNo,pageSize));
    }
}
